{include file="public/header" /}
<style>
    .layui-flow-more{
        padding: 10px;
    }
</style>
<body class="hide-top bgc">
<div class="earnings-container">
    <img src="/static/index/img/icon36.png" alt="">
    <div class="earnings-content">
        <div class="earnings-hd flex-center">
            <i class="layui-icon layui-icon-left flex-center" onclick="history.go(-1)"></i>我的团队
        </div>

        <div class="wallet-list">
            <ul class="wallet-nav wallet-navs">
                <li>
                    <p>总人数</p>
                    <p class="num">{$team}</p>
                </li>
                <li>
                    <p>直推人数</p>
                    <p class="num">{$dpn}</p>
                </li>
                <li>
                    <p>团队业绩</p>
                    <p class="num">{$team_total}</p>
                </li>
                <li>
                    <p>直推业绩</p>
                    <p class="num">{$dpn_total}</p>
                </li>
            </ul>
        </div>

        <div class="my-team-content bgc">
            <p class="title">团队成员</p>
            <ul class="team-list tpl_list"></ul>
        </div>
    </div>
</div>

<script id="template" type="text/html">
    {{# for(var i=0 ;i < d.data.length; i++){ }}
    <li>
        <p class="flex-center">
            <img src="{{d.data[i].fresh.photo ? d.data[i].fresh.photo:'/static/index/img/photo.png'}}" alt="">
        </p>
        <div class="rgt">
            <p class="name">{{d.data[i].fresh.nickname}} <span>{{d.data[i].fresh.team_total}}</span></p>
            <p>{{d.data[i].fresh.mobile}}</p>
        </div>
    </li>
    {{# } }}
</script>
{include file="public/menu" select="3" /}
</body>

{include file="public/footer"/}
<script>
    $(function () {
        getFlow(1, "{:url('user/my_team')}");
    })

</script>
</html>